package com.aidex.biz.domain;

import com.aidex.common.annotation.Excel;
import com.aidex.common.core.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import java.math.BigDecimal;
import java.util.Date;
/**
 * 演唱会信息对象 biz_songs_info
 * @author sean
 * @email 2074844820@qq.com
 * @date 2023-07-07
 */
@Data
public class SongsInfo extends BaseEntity<SongsInfo>
{
    private static final long serialVersionUID = 1L;



    /** 演唱会主题 */
    @Excel(name = "演唱会主题")
    private String title;

    /** 轮播图 */
    @Excel(name = "轮播图")
    private String bannerImage;

    /** 价格 */
    private BigDecimal price;

    /** 地址 */
    private String address;

    /** 活动详情 */
    private String detailsInfo;

    /** 发行总数 */
    private Integer totel;

    /** 剩余 */
    private Integer beleft;

    /** 演出时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date songTime;

    /** 演出时间开始 */
    private String beginSongTime;

    /** 演出时间结束 */
    private String endSongTime;
    /** 排序 */
    private Integer sort;

    /** 状态（0正常 1 停用） */
    @NotBlank(message = "状态（0正常 1 停用）不允许为空")
    private String status;


    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }

    public void setBannerImage(String bannerImage) 
    {
        this.bannerImage = bannerImage;
    }

    public String getBannerImage() 
    {
        return bannerImage;
    }

    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }

    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }

    public void setDetailsInfo(String detailsInfo) 
    {
        this.detailsInfo = detailsInfo;
    }

    public String getDetailsInfo() 
    {
        return detailsInfo;
    }

    public void setTotel(Integer totel) 
    {
        this.totel = totel;
    }

    public Integer getTotel() 
    {
        return totel;
    }

    public void setBeleft(Integer beleft) 
    {
        this.beleft = beleft;
    }

    public Integer getBeleft() 
    {
        return beleft;
    }

    public void setSongTime(Date songTime) 
    {
        this.songTime = songTime;
    }

    public Date getSongTime() 
    {
        return songTime;
    }

    public void setSort(Integer sort) 
    {
        this.sort = sort;
    }

    public Integer getSort() 
    {
        return sort;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("userId", getUserId())
            .append("deptId", getDeptId())
            .append("userName", getUserName())
            .append("deptName", getDeptName())
            .append("companyId", getCompanyId())
            .append("title", getTitle())
            .append("bannerImage", getBannerImage())
            .append("price", getPrice())
            .append("address", getAddress())
            .append("detailsInfo", getDetailsInfo())
            .append("totel", getTotel())
            .append("beleft", getBeleft())
            .append("songTime", getSongTime())
            .append("sort", getSort())
            .append("status", getStatus())
            .append("remark", getRemark())
            .append("id", getId())
            .append("createBy", getCreateBy())
            .append("createDept", getCreateDept())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("updateIp", getUpdateIp())
            .append("version", getVersion())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
